package org.batatasframework.support.charts.baidu;

import java.util.ArrayList;
import java.util.List;

public class ChartVisualMap {

	private int min=0;
	private int max=0;
	private List<Object> text = new ArrayList<Object>();
	//是否显示拖拽用的手柄（手柄能拖拽调整选中范围）
	private boolean calculable=false;
	//拖拽时，是否实时更新。
	private boolean realtime=true;
	
	private ChartInRange inRange=new ChartInRange();

	public ChartVisualMap(){}
	
	public void setColors(Object...colors){
		inRange.setColors(colors);
	}
	
	public ChartVisualMap(int min, int max){
		this.min = min;
		this.max = max;
	}
	
	public void setTexts(Object...texts){
		for(Object txt : texts){
			text.add(txt);
		}
	}

	public int getMin() {
		return min;
	}

	public void setMin(int min) {
		this.min = min;
	}

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	public List<Object> getText() {
		return text;
	}

	public void setText(List<Object> text) {
		this.text = text;
	}

	public boolean isCalculable() {
		return calculable;
	}

	public void setCalculable(boolean calculable) {
		this.calculable = calculable;
	}

	public boolean isRealtime() {
		return realtime;
	}

	public void setRealtime(boolean realtime) {
		this.realtime = realtime;
	}

	public ChartInRange getInRange() {
		return inRange;
	}

	public void setInRange(ChartInRange inRange) {
		this.inRange = inRange;
	}



}
